import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus, {ElMessage} from 'element-plus'
import 'element-plus/dist/index.css'
import * as ELIcons from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'
import * as echarts from 'echarts';




const app = createApp(App)
//将图标注册为全局组件
for (let iconName in ELIcons) {
    app.component(iconName, ELIcons[iconName])
}
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.config.globalProperties.$message = ElMessage;

app.mount('#app')
